package com.easy.common.constant;

import com.google.gson.Gson;

public interface CommonConstant {
	
	public static final Gson gson = new Gson();
	
	interface PAGES {
		public String HOME = "/";//返回首页路径
	}
	
	interface PARAMETER_KEY {
		public final String methodKey = "method";
		public final String tokenKey = "token";
		public final String paramKey = "param";
		public final String apiKey = "apikey";
	}
	
	interface PLATFORM_ADDRESS {
		public final String smsGetway = "http://mb345.com/WS/Send.aspx";
	}

	interface COOKIE_MAX_AGE {
		/** 前台cookie有效期 */
		public int MAX_AGE = 3600;
		/** 后台cookie有效期 */
		public int COOKIE_MAX_AGE = 3600 * 12;
	}

	interface COOKIE {
		/** 前缀 */
		String PRIFIX = "pis";
		/** 用户id */
		String USER_ID = "userId";
		/** 用户名 */
		String USER_NAME = "userName";
		/** 登录token */
		String COOKIE_TOKEN = "token";
		/** */
		String COOKIE_TIME = "createTime";
	}

	interface SESSION {

		String USER_INFO = "userInfo";

	}
	
	/**
	 * 是否删除
	 * @author wyj
	 */
	interface DELETE {
		int YES = 1;
		int NO = 0;
	}
}
